import os
import cv2
import utils
import random
import numpy as np
from tqdm import tqdm


CombinePath = r"D:\CCTSDB\ssd\MobileNet-SSD-windows-master\data\ownData\VOC2007\JpgAndXml\Circle"
OutPath = r''
CombineShape = (300, 300, 3)

NamesP = []
for root, dirs, files in os.walk(CombinePath):
    for file in tqdm(files):
        if file.split(".")[-1] == 'jpg':
            NamesP.append(root + "\\" + file)
# NameP = NameP[:-int(len(NameP) % 4)]
random.shuffle(NamesP)
OutputLocation = 0
while len(NamesP):
    if OutputLocation == 0:
        OutputImg = np.zeros(CombineShape)
    Infos = utils.ReadXml(NamesP[0])

